using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using EntLibEC.Dac.Online;

namespace EntLibEC.Biz.Online
{
    public class SearchKeywordManager
    {
        public static bool Insert(string keyword, int priority, int isOnlineShow, int createUserSysNo, string customerIP)
        {
            try
            {
                SearchKeywordDac.Insert(keyword, priority, isOnlineShow, createUserSysNo, customerIP);

                return true;
            }
            catch (Exception ex)
            {
                CommonLayer.LogManagement.LogManager.WriteException(ex, "Search/Web site", customerIP);

                return false;
            }
        }

        public static DataSet Query(DateTime? fromDateTime, DateTime? toDateTime)
        {
            return SearchKeywordDac.Query(fromDateTime, toDateTime);
        }
    }
}
